﻿using NailsFramework.Persistence;

namespace CID.Domain.Operations
{
    public class ServerAssignment : Model<ServerAssignment>, IServerAssignment
    {
        public virtual int Id { get; private set; }

        public virtual IServer Server { get; private set; }
        public virtual IServerRole ServerRole { get; private set; }
        public virtual IEnvironment Environment { get; private set; }

        protected ServerAssignment()
        { 
        }

        internal ServerAssignment(IServer server, IServerRole serverRole, IEnvironment environment) : this()
        {
            Server = server;
            ServerRole = serverRole;
            Environment = environment;
        }
    }
}
